package com.example.day_day_up.service.impl;

import com.example.day_day_up.entity.po.Course;
import com.example.day_day_up.mappers.CourseMapper;
import com.example.day_day_up.service.CourseService;

import java.util.List;

public class CourseServiceImpl implements CourseService {
    private final CourseMapper courseMapper;

    public CourseServiceImpl(CourseMapper courseMapper) {
        this.courseMapper = courseMapper;
    }

    @Override
    public List<Course> getAllCourses() {
        return courseMapper.getAll();
    }

    @Override
    public Course selectByID(String id) {
        return courseMapper.selectByID(id);
    }
}
